public class GirlTest {
    public static void main(String[] args) {

    }
}
//懒汉式
class Gril{
    private Gril(){

    }
    private Gril g1 = null;
    public Gril getg1(){
        if (g1==null){
            g1 = new Gril();
            return g1;
        }
        else {
            return g1;
        }
    }
}